package imper.engine.entity;

public class ResourcesType
{

	protected int _id;
	protected String _name;
	protected String _description;
	protected Integer _workforce;
	protected boolean _workforceRef;

	public ResourcesType()
	{
		setWorkforceRef(false);
		setWorkforce(0);
	}

	public int getId()
	{
		return _id;
	}

	public void setId(int _id)
	{
		this._id = _id;
	}

	public String getName()
	{
		return _name;
	}

	public void setName(String _name)
	{
		this._name = _name;
	}

	public String getDescription()
	{
		return _description;
	}

	public void setDescription(String _description)
	{
		this._description = _description;
	}

	public Integer getWorkforce()
	{
		return _workforce;
	}

	public void setWorkforce(Integer pWorkforce)
	{
		this._workforce = pWorkforce;
	}

	public Boolean getWorkforceRef()
	{
		return _workforceRef;
	}

	public void setWorkforceRef(Boolean pWorkforceRef)
	{
		this._workforceRef = pWorkforceRef;
	}

	public boolean isWorkForce()
	{
		return getWorkforce() != 0 || Boolean.TRUE.equals(getWorkforceRef());
	}

}
